import request from '@/utils/request'

// 查询平台陈列V5柜商品列表
export function listPlatformProjectDisplayGoods(query) {
  return request({
    url: '/genius/platform-project-display-goods/list',
    method: 'get',
    params: query
  })
}

// 查询平台陈列V5柜商品详细
export function getPlatformProjectDisplayGoods(id) {
  return request({
    url: '/genius/platform-project-display-goods/' + id,
    method: 'get'
  })
}

// 新增平台陈列V5柜商品
export function addPlatformProjectDisplayGoods(data) {
  return request({
    url: '/genius/platform-project-display-goods',
    method: 'post',
    data: data
  })
}

// 批量新增平台陈列V5柜商品
export function batchInsertPlatformProjectDisplayGoods(data) {
  return request({
    url: '/genius/platform-project-display-goods/batch-insert',
    method: 'post',
    data: data
  })
}

// 修改平台陈列V5柜商品
export function updatePlatformProjectDisplayGoods(data) {
  return request({
    url: '/genius/platform-project-display-goods',
    method: 'put',
    data: data
  })
}

// 删除平台陈列V5柜商品
export function delPlatformProjectDisplayGoods(id) {
  return request({
    url: '/genius/platform-project-display-goods/' + id,
    method: 'delete'
  })
}

// 逻辑删除平台陈列V5柜商品
export function removedPlatformProjectDisplayGoods(id) {
  return request({
    url: '/genius/platform-project-display-goods/' + id,
    method: 'delete'
  })
}
